﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PPAPPrint.aspx.cs" Inherits="PPAP.Web.Part.PPAPPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style media="print">
        .Noprint
        {
            display: none;
        }
        UNKNOWN
        {
            page-break-after: always;
        }
    </style>
       <!-- 插入打印控件 -->

    <script language="javascript" type="text/javascript">

        function doPrint(how) {

            //打印文档对象
            var myDoc = {
                documents: document,    // 打印页面(div)们在本文档中
                copyrights: '杰创软件拥有版权  www.jatools.com'         // 版权声明必须
            };

            // 调用打印方法
            if (how == 'Preview...')
                jatoolsPrinter.printPreview(myDoc);   // 打印预览

            else if (how == 'Print...')
                jatoolsPrinter.print(myDoc, true);   // 打印前弹出打印设置对话框

            else
                jatoolsPrinter.print(myDoc, false);       // 不弹出对话框打印
        }

   
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <div class="Noprint">
    <table width="100%" align="center" width="780px">
            <tr>
                <td colspan="4" style="height: 30px; background-color: #FFFFCC">
                    <img src="../Images/newimg/tishi.png" style="vertical-align: middle;" /> To Print this page, please click Print in File(F) menu.
                </td>
            </tr>
            </table>
    </div>
    <div>
    <table cellspacing="0" cellpadding="0" width="900" border="0" style="display:none;">
        <tr>
            <td align="right" width="100%" colspan="2">
                <input onclick="doPrint('Preview...')" type="button" value="Preview" class="button" />
                <input onclick="doPrint('Print...')" type="button" value="Print" class="button" />
            </td>
        </tr>
    </table>
     <div id="page1">
        <table width="900" style="background-color: #EEE; border-color: #2A48CE; border: 0px;
            border-style: solid; border-spacing: 0px;">
            <tr>
                <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                    PPAR No.
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="LblPPARNo" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                    Status
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr style="border: 1px; border-style: solid; border-color: Gray;">
                <td style="font-weight: bold; color: #2E8AC5;">
                    BDNT Part No.
                </td>
                <td>
                    <asp:Label ID="lblPartNo" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    BDNT Part name
                </td>
                <td>
                    <asp:Label ID="lblPartName" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    BDNT Revision No.
                </td>
                <td>
                    <asp:Label ID="lblRevisionNo" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    
                </td>
                <td>
                    <asp:Label ID="lblRevisionStatus" Visible="false" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Color
                </td>
                <td>
                    <asp:Label ID="lblColor" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    PPAR create date
                </td>
                <td>
                    <asp:Label ID="lblPPARdate" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Supplier name
                </td>
                <td>
                    <asp:Label ID="lblSupplierName" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Supplier code
                </td>
                <td>
                    <asp:Label ID="lblSupplierCode" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Contact person
                </td>
                <td>
                    <asp:Label ID="lbContactPerson" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Contact person information
                </td>
                <td>
                    <asp:Label ID="lblPersonInformation" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>

        <table width="900">
            <tr>
                
                <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                    Supplier part No.
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtSupplierPartNo" runat="server" Width="205px" 
                        AutoPostBack="True"
                        ></asp:Label>
                    <%--<input type="text" id="txtSupplierPartNo" style="width:205px;" runat="server" />--%>
                    </td>
                <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                    Supplier part name
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtSupplierPartName" runat="server" Width="265px" 
                        AutoPostBack="True" 
                        ></asp:Label>
                    </td>
            </tr>
            <tr style="border: 1px; border-style: solid; border-color: Gray;">
                <td style="font-weight: bold; color: #2E8AC5; color: #2E8AC5;">
                    Plant
                </td>
                <td>
                    <asp:Label ID="ddlPlant" runat="server" Width="205px">
                    </asp:Label>
                    </td>
                <td style="font-weight: bold; color: #2E8AC5; color: #2E8AC5;">
                    Reason for sampling
                </td>
                <td>
                    <asp:Label ID="lblReason" runat="server" Text="Label"></asp:Label>
                    <br />
                    <asp:Label ID="lblReason2" runat="server" Text="Label"></asp:Label>
                    <br />
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Q/E level
                </td>
                <td colspan="3">
                    <asp:Label ID="ddlLevel" runat="server">
                    </asp:Label>
                    <asp:Label ID="txtQLevel" runat="server" Width="125px" ></asp:Label>
                    
                    </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5; color: #2E8AC5;">
                    Modification scope
                </td>
                <td style=" vertical-align:middle;">
                    <asp:Label ID="txtModificationScope" runat="server" Height="84px" Width="205px"
                         TextMode="MultiLine"  style="word-wrap : break-word;word-break: break-all; overflow:hidden; " BackColor="White" AutoPostBack="True" 
                         ></asp:Label>
                    </td>
                <td style="font-weight: bold; color: #2E8AC5; color: #2E8AC5;">
                    Remarks/explanations
                </td>
                <td>
                    <asp:Label ID="txtRemarks" runat="server" Height="84px" Width="265px"  TextMode="MultiLine"  style="word-wrap : break-word;word-break: break-all; overflow:hidden; "
                        BackColor="White" AutoPostBack="True" 
                         ></asp:Label>
                    </td>
            </tr>
        </table>
        <hr />
        <table width="900">
            <tr>
                <td colspan="4" style="height: 30px; background-color: #FFFFCC">
                    <img src="../Images/newimg/tishi.png" style="vertical-align: middle;" /> only applicable for ECU or part with ECU
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5; width: 20%;">
                    ECU HW Version No.
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtECUHW" runat="server" width="205px" AutoPostBack="True" 
                        ></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5; width: 20%;">
                    ECU SW Version No.
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtECUSW" runat="server" Width="265px" AutoPostBack="True" 
                        ></asp:Label>
                </td>
            </tr>
        </table>
        <hr />
        <table width="900">
            <tr>
                <td colspan="4" style="height: 30px; background-color: #FFFFCC">
                    <img src="../Images/newimg/tishi.png" style="vertical-align: middle;" /> only applicable for press parts/BiW
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5; width: 20%;">
                    Press part / Month of<br />
                    production
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="ddlYear" runat="server" >
                    </asp:Label>
                   /<asp:Label ID="ddlMonth" runat="server" >
                    </asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5; width:20%">
                    Press part / Press cycle
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtPressPartPressCycle" runat="server" Width="265px" 
                        AutoPostBack="True" 
                        ></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Press part / Marking nest<br />
                    , left or right
                </td>
                <td>
                    <asp:Label ID="txtPressPartMarkingNest" runat="server" Width="205px" 
                        AutoPostBack="True" 
                        ></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Press part / Revision<br />
                    number
                </td>
                <td>
                    <asp:Label ID="txtPressPartRevisionNumber" runat="server" Width="265px" 
                        AutoPostBack="True" 
                        ></asp:Label>
                </td>
            </tr>
        </table>
        <hr />
        <table width="900">
            <tr>
                <td colspan="4">
                    <asp:CheckBox ID="cbPPARWithoutSample" runat="server" Text="PPAR without sample"
                        AutoPostBack="True" ForeColor="#2E8AC5" 
                         Enabled="False" />
                </td>
            </tr>
            <tr runat="server" id="tr1">
                <td style="font-weight: bold; color: #2E8AC5; width: 20%;">
                    Delivered parts quantity
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtDeliveredPartsQuantity" runat="server" Width="205px" 
                        AutoPostBack="True" 
                       ></asp:Label>
                    </td>
                <td style="font-weight: bold; color: #2E8AC5; width: 20%;">
                    Delivery/courier company
                </td>
                <td style="width: 30%;">
                    <asp:Label ID="txtDeliveryCourierCompany" runat="server" Width="265px" 
                        AutoPostBack="True" 
                       ></asp:Label>
                    </td>
            </tr>
            <tr runat="server" id="tr2">
                <td style="font-weight: bold; color: #2E8AC5;">
                    Delivery note date
                </td>
                <td>
                    <asp:Label ID="dpDeliveryNoteDate1" runat="server" Width="205px" 
                        onclick="WdatePicker();" AutoPostBack="True" 
                        ></asp:Label>
                    </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Delivery note number
                </td>
                <td>
                    <asp:Label ID="txtDeliveryNoteNumber" runat="server" Width="265px" 
                        AutoPostBack="True" 
                       ></asp:Label>
                    </td>
            </tr>
        </table>
        </div>
    </div>
    </form>
    <script language="javascript">
        window.print();
</script>

</body>
</html>
